package cn.js.sip.rat.system.service.impl;

import cn.js.sip.rat.system.entity.ConfigInfoEntity;
import cn.js.sip.rat.system.mapper.ConfigInfoMapper;
import cn.js.sip.rat.system.page.TableDataInfo;
import cn.js.sip.rat.system.service.BaseService;
import cn.js.sip.rat.system.service.ConfigInfoSevice;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @ClassName: cn.js.sip.rat.system.service.impl
 * @Description: TODO
 * @author: xuxiaoli
 * @Date: 2020-01-20   17:20
 */
@Service("configInfoSevice")
public class ConfigInfoSeviceImpl extends BaseServiceImpl<ConfigInfoEntity> implements ConfigInfoSevice {

    @Resource
    private ConfigInfoMapper configInfoMapper;
    @Override
    public TableDataInfo query(ConfigInfoEntity entity) {
        Page page = new Page(1, 10);
        Page selectPage = configInfoMapper.selectPage(page, null);
        return super.getDataTable(selectPage);
    }
}
